package com.diko.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.diko.common.utils.PageUtils;
import com.diko.product.entity.AttrGroupEntity;
import com.diko.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author Emma Li
 * @email 1006298386@qq.com
 * @date 2021-04-18 15:02:18
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据分类id分页查询
     * @param params
     * @param catelogId
     * @return
     * */
    PageUtils queryPage(Map<String, Object> params,Long catelogId);

    /**
     * 获取分类下所有分组&关联属性
     * @param catelogId
     * @return
     * */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

